package com.yuanfeng.base.controller;


import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ClassName BaseDealerSetController
 * @Description 供应商配置项
 * @Author cyp
 * @Date 2023-05-31 14:07:48
 * @Version 1.0
 **/
@RestController
@RequestMapping("/baseDealerSet")
public class BaseDealerSetController extends BaseController {

    /**
     * 查询经销规则
     * @return
     */
    @PostMapping("settingDistribute/query")
    public ResponseResult settingDistribute() {
        return baseDealerSetService.settingDistribute();
    }


    /**
     * 修改经销商品设置
     */
    @PostMapping("/settingDistribute/update")
    public ResponseResult settingDistributeUpdate(@RequestBody Map<String,Object> map) {
        return baseDealerSetService.settingDistributeUpdate(map);
    }

}
